from django.conf import settings

__all__ = ('MarkupField',)

MARKUP_CHOICES = getattr(settings, 
                         'DMARKUPS_MARKUP_CHOICES', 
                         {'markdown' : ('Markdown', lambda text: "render%srender" % text),
                          'html' : ('Raw HTML', lambda text: "render%srender" % text),
                          'textile' : ('Textile', lambda text: "render%srender" % text)})

class MarkupRenditionError(ValueError):
    pass